<include file="Public:header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
    <include file="Public:nav"/>
    <form name="myform" action="" method="post" class="J_ajaxForm">
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td width="4%"><label><input type="checkbox" class="J_check_all" data-direction="x" data-checklist="J_check_x"></label></td>
                <td width="8%">排序</td>
                <td width="5%">序号</td>
                <td width="5%">审核</td>
                <td width="5%">页面</td>
                <td width="8%">位置</td>
                <td>标题</td>
                <td width="15%">管理操作</td>
            </tr>
            </thead>
            <foreach name="list" item="vo">
                <tr>
                    <td><input type="checkbox" class="J_check" data-yid="J_check_y" data-xid="J_check_x" name="ids[]" value="{$vo.ad_id}"></td>
                    <td><input name="sort[{$vo.ad_id}]" type="text" size="3" value="{$vo.sort}" class="input"></td>
                    <td>{$vo.ad_id}</td>
                    <td>{$vo.status|showStatus}</td>
                    <td><if condition="$vo.type eq 1">列表<else/>详情</if></td>
                    <td>{$vo.position}</td>
                    <td><a href="{:U("Teach/adedit",array("id"=>$vo[ad_id]))}">{$vo.title}</a><if condition="$vo.image neq ''"><font color="red">图</font> </if></td>
                    <td><a href="{:U('Teach/adedit',array('id'=>$vo[ad_id]))}">修改</a> <a class="J_ajax_del" data-msg="确定删除该信息吗?" href="{:U('Teach/delad',array('id'=>$vo['ad_id']))}">删除</a></td>
                </tr>
            </foreach>
        </table>
        <div class="p10"><div class="pages"> {$Page} </div> </div>
        <div class="btn_wrap">
            <div class="btn_wrap_pd">
                <label class="mr20 sel-all"><input type="checkbox" class="J_check_all" data-direction="y" data-checklist="J_check_y">全选</label>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Teach/sort')}">排序</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Teach/adbatch',array('do'=>'checkpass'))}">审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-action="{:U('Teach/adbatch',array('do'=>'cancelpass'))}">取消审核</button>
                <button class="btn J_ajax_submit_btn" type="submit" data-msg="确认删除这些信息?" data-subcheck="true" data-action="{:U('Teach/delAllad')}">删除</button>
            </div>
        </div>
    </div>
</div>
</form>
</div>
<script src="__JS__/common.js"></script>
</body>
</html>